﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Zyg.Utility.Helper
{
    public class FileHelper
    {
        public static string GetFileExtension(string fileName)
        {
            if (string.IsNullOrEmpty(fileName))
                return String.Empty;

            int dotIndex = fileName.LastIndexOf('.');

            return fileName.Substring(dotIndex);
        }
    }
}
